import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'lib-flexible'
import { NavBar, Form, Field, Button, Toast, Tabbar, TabbarItem, Cell, CellGroup, Icon, Swipe, SwipeItem, Col, Row, DropdownMenu, DropdownItem, IndexBar, IndexAnchor, Card, Search, List, Area, Tag, Picker, Grid, GridItem, Popup, Dialog, Uploader } from 'vant'
import BaiduMap from 'vue-baidu-map'

Vue.use(BaiduMap, {
  ak: 'BH0Ce9NZfE0ty1QhMhkY8x7E5cVgv5bN'
})
// 全局注册
Vue.use(Dialog)
Vue.use(Popup)
Vue.use(Grid)
Vue.use(GridItem)
Vue.use(Picker)
Vue.use(Tag)
Vue.use(Area)
Vue.use(List)
Vue.use(Search)
Vue.use(Card)

Vue.use(Uploader)
Vue.use(IndexBar)
Vue.use(IndexAnchor)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.use(Row)
Vue.use(Col)
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.use(Icon)
Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Toast)
Vue.use(Button)
Vue.use(Form)
Vue.use(Field)
Vue.use(NavBar)
Vue.config.productionTip = false
Toast.setDefaultOptions({ duration: 20000 })
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
